<%-- 
    Document   : List
    Created on : 16-gen-2015, 18.30.25
    Author     : takamflore
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
          <form action="WeatherServlet" method="POST" ></form>
    <br>
    <table border="1">
        <thead>
            <tr>
        <th> ID </th>
        <th> Weather</th>
        <th> Temperature </th>
        <th> Pression</th>
        <th>Addresse</th>
        <th> Action</th>
        
            </tr>
       </thead>
       <tbody>
        <c:forEach items="${weathers}" var="weather">
            <tr>
                <td><c:out value="${weather.Id}"/></td>
                <td><c:out value="${weather.weather}"/></td>    
                <td><c:out value="${weather.temperature}"/></td>
                <td><c:out value="${weather.pression}"/></td>
                <td><c:out value="${weather.city}"/></td>
               <td><a href="WeatherServlet?action=view&&weatherid=<c:out value="${weather.Id}"/>/>">View</a></td>
            </tr>
        </c:forEach>
       </tbody>
    </table>
    </body>
</html>
